package com.ztesoft.report.entity;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.ztesoft.report.base.entity.BaseEntity;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 组织机构
 * </p>
 *
 * @author y3tu
 * @since 2018-07-23
 */
@TableName("SYS_ORG")
public class SysOrg extends BaseEntity<Long> {

    private static final long serialVersionUID = 1L;

    /**
     * 机构ID
     */
	@TableId("ORG_ID")
	private String orgId;
    /**
     * 机构编码
     */
	@TableField("ORG_CODE")
	private String orgCode;
    /**
     * 机构名称
     */
	@TableField("NAME")
	private String name;
    /**
     * 上级机构ID
     */
	@TableField("PARENT_ID")
	private String parentId;
    /**
     * 排序
     */
	@TableField("SEQ_NUM")
	private Integer seqNum;
    /**
     * 描述
     */
	@TableField("REMARKS")
	private String remarks;
    /**
     * 创建人
     */
	@TableField("CREATE_BY")
	private String createBy;
    /**
     * 创建时间
     */
	@TableField("CREATE_DATE")
	private Date createDate;
    /**
     * 更新人
     */
	@TableField("UPDATE_BY")
	private String updateBy;
    /**
     * 更新时间
     */
	@TableField("UPDATE_DATE")
	private Date updateDate;
    /**
     * 删除标识。0：正常，1：删除
     */
	@TableField("DEL_FLAG")
	private Integer delFlag;
	@TableField("STATUS")
	private Integer status;


	public String getOrgId() {
		return orgId;
	}

	public void setOrgId(String orgId) {
		this.orgId = orgId;
	}

	public String getOrgCode() {
		return orgCode;
	}

	public void setOrgCode(String orgCode) {
		this.orgCode = orgCode;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getParentId() {
		return parentId;
	}

	public void setParentId(String parentId) {
		this.parentId = parentId;
	}

	public Integer getSeqNum() {
		return seqNum;
	}

	public void setSeqNum(Integer seqNum) {
		this.seqNum = seqNum;
	}

	public String getRemarks() {
		return remarks;
	}

	public void setRemarks(String remarks) {
		this.remarks = remarks;
	}

	public String getCreateBy() {
		return createBy;
	}

	public void setCreateBy(String createBy) {
		this.createBy = createBy;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public String getUpdateBy() {
		return updateBy;
	}

	public void setUpdateBy(String updateBy) {
		this.updateBy = updateBy;
	}

	public Date getUpdateDate() {
		return updateDate;
	}

	public void setUpdateDate(Date updateDate) {
		this.updateDate = updateDate;
	}

	public Integer getDelFlag() {
		return delFlag;
	}

	public void setDelFlag(Integer delFlag) {
		this.delFlag = delFlag;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	@Override
	protected Serializable pkVal() {
		return this.orgId;
	}

	@Override
	public String toString() {
		return "SysOrg{" +
			", orgId=" + orgId +
			", orgCode=" + orgCode +
			", name=" + name +
			", parentId=" + parentId +
			", seqNum=" + seqNum +
			", remarks=" + remarks +
			", createBy=" + createBy +
			", createDate=" + createDate +
			", updateBy=" + updateBy +
			", updateDate=" + updateDate +
			", delFlag=" + delFlag +
			", status=" + status +
			"}";
	}
}
